#include <iostream>
#include <thread>
using namespace std;
auto mythread = []{
    cout << "线程开始" << endl;

    cout << "线程结束" << endl;
};
int main()
{

    thread mytobj(mythread);
    
    mytobj.join();

    cout<< "1主线程:" << endl;
    cout<< "2主线程:" << endl;
    cout<< "3主线程:" << endl;
    return 0;
}
